package com.unireport.dbbean;

// Generated 2012-5-2 22:17:44 by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * WebjobSyncWait generated by hbm2java
 */
@Entity
@Table(name = "WEBJOB_SYNC_WAIT", schema = "DATAMANAGER")
@SequenceGenerator(name="seq_webjob_id_wait", sequenceName="seq_webjob_id_wait",allocationSize=1)
public class WebjobSyncWait implements java.io.Serializable {

	private int idWait;
	private Integer jobId;
	private Set webjobSyncDefs = new HashSet(0);

	public WebjobSyncWait() {
	}

	public WebjobSyncWait(int idWait) {
		this.idWait = idWait;
	}

	public WebjobSyncWait(int idWait, Integer jobId, Set webjobSyncDefs) {
		this.idWait = idWait;
		this.jobId = jobId;
		this.webjobSyncDefs = webjobSyncDefs;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="seq_webjob_id_wait")
	@Column(name = "ID_WAIT", unique = true, nullable = false, precision = 8, scale = 0)
	public int getIdWait() {
		return this.idWait;
	}

	public void setIdWait(int idWait) {
		this.idWait = idWait;
	}

	@Column(name = "JOB_ID", precision = 8, scale = 0)
	public Integer getJobId() {
		return this.jobId;
	}

	public void setJobId(Integer jobId) {
		this.jobId = jobId;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "webjobSyncWait",targetEntity=WebjobSyncDef.class)
	public Set getWebjobSyncDefs() {
		return this.webjobSyncDefs;
	}

	public void setWebjobSyncDefs(Set webjobSyncDefs) {
		this.webjobSyncDefs = webjobSyncDefs;
	}

}
